<?php
namespace app\common\validate;

use think\Validate;

class GoodsComment extends Validate
{
    protected $rule =   [
        'order_id'  => 'require',
        'goods_id'  => 'require',
//        'commentimages'  => 'require',
        'note'  => 'require',
        'star'  => 'require',


    ];

    protected $message  =   [

        'order_id.require' => '订单不能为空',
        'goods_id.require' => '商品id不能为空',
//        'commentimages.require' => '评论图不能为空',
        'note.require' => '评论内容不能为空',
        'star' => '星级不能为空',


    ];
}